import request from "@/utils/request";

// 查询安环资产列列表
export function listBizAnhuanZicanList(query) {
  return request({
    url: "/biz/bizAnhuanZicanList/list",
    method: "get",
    params: query,
  });
}

// 查询安环资产列详细
export function getBizAnhuanZicanList(id) {
  return request({
    url: "/biz/bizAnhuanZicanList/" + id,
    method: "get",
  });
}

// 新增安环资产列
export function addBizAnhuanZicanList(data) {
  return request({
    url: "/biz/bizAnhuanZicanList",
    method: "post",
    data: data,
  });
}

// 修改安环资产列
export function updateBizAnhuanZicanList(data) {
  return request({
    url: "/biz/bizAnhuanZicanList",
    method: "put",
    data: data,
  });
}

// 删除安环资产列
export function delBizAnhuanZicanList(id) {
  return request({
    url: "/biz/bizAnhuanZicanList/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizAnhuanZicanList/findMaxSort",
    method: "get",
  });
}
// 导出安环资产列
export function exportBizAnhuanZicanList(query) {
  return request({
    url: "/biz/bizAnhuanZicanList/export",
    method: "get",
    params: query,
  });
}
